package ScreensManager.GameScreens 
{
	import flash.events.MouseEvent;
	import ScreensManager.Screen;
	import ScreensManager.ScreenManager;
	/**
	 * ...
	 * @author Danilo Gama
	 */
	public class PauseGame extends Screen
	{
		
		/*public function PauseGame() 
		{
			//questionBoxMenu.visible = false;
			//questionBoxRestart.visible = false;
			//questionBoxSelect.visible = false;
			
			if (!Main.isMuted)
			{
				soundOffBtn.visible = false;
				soundOnBtn.visible = true;
			}
			else
			{
				soundOffBtn.visible = true;
				soundOnBtn.visible = false;
			}
			
			resumeBtn.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownResume, false, 0, true);
			BtnMenu.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownMenu, false, 0, true);
			
			soundOffBtn.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownSound, false, 0, true);
			soundOnBtn.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownSound, false, 0, true);
		}
		
		private function MouseDownSound(e:MouseEvent):void
		{
			if (soundOnBtn.visible) 
			{
				
				LevelManager.getCurrentLevel().soundChannel.soundTransform = new SoundTransform(0);
				
				Main.isMuted = true;
				
				soundOffBtn.visible = true;
				soundOnBtn.visible = false;
			}
			else if (soundOffBtn.visible) 
			{
				LevelManager.getCurrentLevel().soundChannel.soundTransform = new SoundTransform(1);
				
				Main.isMuted = false;
				
				soundOffBtn.visible = false;
				soundOnBtn.visible = true;
			}
		}
		
		private function MouseDownResume(e:MouseEvent):void
		{
			LevelManager.isPaused = false;
			ScreenManager.setCurrentScreen(Screens.RESUME_SCREEN);
		}
		
		private function MouseDownMenu(e:MouseEvent):void
		{
			//questionBoxMenu.visible = true;
			//questionBoxRestart.visible = false;
			//questionBoxSelect.visible = false;
			ScreenManager.setCurrentScreen(Screens.MAIN_MENU);
		}*/
	}
}